package com.example.demo.entity;

import com.fasterxml.jackson.annotation.JsonView;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "用户信息")
public class UserVO {

    @ApiModelProperty("ID主键")
    @JsonView(InfoJsonView.class)
    private int id;

    @ApiModelProperty("用户编号")
    @JsonView({NameJsonView.class, BaseJsonView.class})
    private String userid;

    @ApiModelProperty("真实姓名")
    @JsonView({NameJsonView.class, BaseJsonView.class})
    private String name;

    @ApiModelProperty("担任的工作职责")
    @JsonView(BaseJsonView.class)
    private String job;

    public interface NameJsonView {}
    public interface BaseJsonView {}
    public interface InfoJsonView {}
}
